package com.sztx.worker_monitor.web.model;

public enum DealType {
	SLEEP_MODEL(0, "SLEEP"),
	NOSLEEP_MODEL(1, "NOSLEEP"),
	UNKNOW(2, "UNKNOW");
	
	private final Integer value;
	private final String 	description;
	
	private DealType(Integer value, String description) {
		this.value = value;
		this.description = description;
	}
	
	public Integer getValue() {
		return value;
	}



	public String getDescription() {
		return description;
	}



	static public DealType LoadDealType(Integer value){
		
		if(value == null ) return UNKNOW;
		switch(value){
		case 0:
			return SLEEP_MODEL;
		case 1:
			return NOSLEEP_MODEL;
		default:
			return UNKNOW;
		}
	}
	
	
	

}
